#include <stdio.h>

void f1(int *x, int *y)
{
	*x = *x + 2 * *y;
	printf("%d\n",*x);
}

void f2(int *x, int *y)
{
	*x = *x + *y;
	*x = *x + *y;
	printf("%d\n",*x);
}

int main(void)
{
	int a = 3;
	int *p;
	int *q;

	p = &a;
	q = &a;
	f1(p, q);
	f2(p, q);
}

